package com.xc.quickstart.common.util;

import java.math.BigDecimal;

public class MathUtil {

    public static double roundVal(double value,int val){
        return new BigDecimal(value+"").setScale(val, BigDecimal.ROUND_HALF_UP).doubleValue();
    }


}
